<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
		<input type="hidden" name="row[rules]" value="" />
		<input type="hidden" name="row[interfaces]" value="" />
		<input type="hidden" id="itemid" value="{$row.itemid}" />
		<div class="form-group">
				<label for="c-name" class="control-label col-xs-12 col-sm-2">名称:</label>
				<div class="col-xs-12 col-sm-8">
						<input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlspecialchars}" />
				</div>
		</div>
		<div class="form-group">
			<label for="nickname" class="control-label col-xs-12 col-sm-2">{:__('Permission')}:</label>
			<div class="col-xs-12 col-sm-8">
				<span class="text-muted"><input type="checkbox" name="" id="checkall" /> <label for="checkall"><small>{:__('Check all')}</small></label></span>
				<span class="text-muted"><input type="checkbox" name="" id="expandall" /> <label for="expandall"><small>{:__('Expand all')}</small></label></span>

				<div id="treeview" rid="{$row.itemid}"></div>
			</div>
		</div>
		<div class="form-group">
			<label for="nickname" class="control-label col-xs-12 col-sm-2">{:__('Interface permission')}:</label>
			<div class="col-xs-12 col-sm-8">
				<span class="text-muted"><input type="checkbox" name="" id="checkalli" /><label for="checkalli"><small>{:__('Check all')}</small></label></span>
				<span class="text-muted"><input type="checkbox" name="" id="expandalli" /><label for="expandalli"><small>{:__('Expand all')}</small></label></span>
				<div id="treeviewi"  rid="{$row.itemid}"></div>
			</div>
		</div>
		<div class="form-group">
				<label for="c-status" class="control-label col-xs-12 col-sm-2">状态:</label>
				<div class="col-xs-12 col-sm-8">
						<div class="radio" >
								<label for="status">
									<input name="row[status]" type="radio" value="1" {if $row.status eq '1'}checked="checked"{/if} /> 正常</label>
								<label for="status">
									<input name="row[status]" type="radio" value="2" {if $row.status eq '2'}checked="checked"{/if} /> 隐藏</label>
						</div>
				</div>
		</div>
		<div class="form-group">
			<label for="c-default" class="control-label col-xs-12 col-sm-2">默认:</label>
			<div class="col-xs-12 col-sm-8">
				<div class="radio">
					<label for="default">
						<input name="row[default]" type="radio" value="1" {if $row.default eq '1' }checked="checked" {/if} />默认</label>
					<label for="default">
						<input name="row[default]" type="radio" value="0" {if $row.default eq '0' }checked="checked" {/if} />非默认</label>
				</div>
			</div>
		</div>
		<div class="form-group">
				<label class="control-label col-xs-12 col-sm-2"></label>
				<div class="col-xs-12 col-sm-8">
						<button type="submit" class="btn btn-success btn-embossed">确定</button>
						<button type="reset" class="btn btn-default btn-embossed">重置</button>
				</div>
		</div>
</form>
